/**
 * 
 */
package com.acme.bankapp.account;

import com.acme.bankapp.domain.bank.BankException;
import com.acme.bankapp.domain.bank.client.Client;

/**
 * @author Alekov Andrey
 * Exception for case when not enough money at account to withdraw.
 */
public class NotEnoughFundsException extends BankException {
	protected Client client;
	private static final long serialVersionUID = 7713119964916505638L;
	
	/**
	 * Constructor.
	 * @param message to print
	 */
	public NotEnoughFundsException(String message) {
		super(message);
	}
	
	/**
	 * Constructor to encapsulate client and exception message.
	 * @param client for who raised exception
	 * @param message with exception description
	 */
	public NotEnoughFundsException(Client client, String message) {
		super(message);
		this.client = client;
	}
	
	/**
	 * Return client
	 * @return the client
	 */
	public Client getClient() {
		return client;
	}
}
